differentiation by quotient rule